package it.lovaex.scb.model;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class CartItem {

	private String description;
	private int quantity;
	private BigDecimal unitPrice;
	private BigDecimal discount;
	
	public CartItem(int quantity, IItem item){
		this.quantity = quantity;
		description = item.getName();
		unitPrice = item.getPrice();
		discount = item.getDiscount();
	}
	
	public int getQuantity() {
		return quantity;
	}
	
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	
	public BigDecimal getUnitPrice() {
		return unitPrice;
	}
	
	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}
	
	public BigDecimal getDiscount() {
		return discount;
	}
	
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
}
